<?php
/**
 * Created by PhpStorm.
 * User: jacob
 * Date: 18-10-16
 * Time: 上午10:02
 * 配置类：一个类就是一个配置模块
 */
class MongoConfig{
  const ADDRESS = "mongodb://127.0.0.1:27018/admin";
  const DBNAME = "pluto";
  const USER = "admin";
  const PWD = "admin";
}

class LoggerConfig{
  const PATH = "/logs/pluto.log";
}

class SmsConfig{
  const ACCESSKEYID = "LTAI4cbAgSBkMrdW";
  const ACCESSKEYSECRET = "7X7HIHV6lnduFVr8MJoJBEjr4r6vd8";
  const SIGNNAME = "向app";
  const TEMPLATECODE = "SMS_126620017";
}

class MailConfig{
  //开启SMTP开启调试
  const SMTPDebug = 0;
  //SMTP鉴权
  const SMTPAuth = true;
  //链接qq域名邮箱的服务器地址
  const Host = "smtp.qq.com";
  //使用ssl鉴权登录
  const SMTPSecure = "ssl";
  const Port = 465;
  const CharSet = "UTF-8";
  //发件人昵称
  const FromName = "潇洒哥";
  //SMTP登录的账号
  const Username = "2420601646@qq.com";
  //授权码
  const Password = "bvhfdtwneqcjeagd";
  //发件人邮箱地址
  const From = "2420601646@qq.com";
  //邮箱内容是否为HTML内容
  const isHTML = true;
  //邮件主题
  const Subject = "一封关于验证码的邮件";
}

class RedisConfig{
  const Host = "127.0.0.1";
  const port = 6379;
  const TimeOut = 30;
}

class WechatConfig{
  //微信开放平台审核通过的应用APPID
  const APPID = "";
  //key为商户平台设置的密钥key
  const KEY = "";
  //微信支付分配的商户号
  const MCHID = "";
  //接收微信支付异步通知回调地址，通知url必须为直接可访问的url
  const NOTIFY_URL = "";
  //统一下单URL
  const UNIFIEDORDERURL = "https://api.mch.weixin.qq.com/pay/unifiedorder";
  //所有微信支付订单的查询URL
  const ORDERQUERYURL = "https://api.mch.weixin.qq.com/pay/orderquery";
  //关闭订单URL 订单生成后不能马上调用关单接口，最短调用时间间隔为5分钟。
  const CLOSEORDERURL = "https://api.mch.weixin.qq.com/pay/closeorder";
}

